var _mm = require('util/mm.js');

var _address = {
    // 获取地址列表
    getloadWorkTrend : function( resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/Worktrend/list.do'),
            success : resolve,
            error   : reject
        });
    },
    // 获取培训列表
    getNeedListTongzhi : function( resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/Pxtonzhi/list.do'),
            success : resolve,
            error   : reject
        });
    },
    //获取师资库的列表
    getTeacherlibList : function( resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/Teacherlib/list.do'),
            success : resolve,
            error   : reject
        });
    },
    //获取互动交流的列表
    getCommunication : function( resolve, reject){
        _mm.request({
            url     : _mm.getServerUrl('/Communction/list.do'),
            success : resolve,
            error   : reject
        });
    },
    //获取在线资料列表
    getOnlineData :function( resolve ,reject){
        _mm.request({
              url     : _mm.getServerUrl('/OnlineData/list.do'),
            success : resolve,
            error   : reject
        });
    },
}
module.exports = _address;